home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / wwdos_02.zip / WW2-12 < prev    next >
Text File  |  1995-01-15  |  7KB  |  134 lines

  1.  
  2.  
  3.  
  4.         Moving to Windows            (c) 1995 by Peter Neuendorffer
  5.  
  6.  
  7.  DoTheNewMachine
  8.  
  9.  It all began when my friends told me I had to write Windows software. I
  10.  was sure the windows boom was a conspiracy to keep DOS writers down and
  11.  out. Besides, where would I get the money for a 486 machine?  When I
  12.  applied for a grant, it was turned down. They told me that my work had
  13.  to appeal to a certain group of users, to fit a specified criteria -
  14.  and it didn't. So I pestered my local bank, and after some credit
  15.  shuffling,  I got a loan.
  16.  
  17.  Almost immediately my three computer-literati friends started giving me
  18.  advice: Do not buy the machine from a store. So I bought a machine from
  19.  VTECH. They said I had to have 8 megs, and large hard drive, a .28
  20.  monitor -the works! So I sacrificed the multimedia and the printer
  21.  because at last I would be making bundles of money- writing Windows
  22.  programs.
  23.  
  24.  When the new machine arrived and I unpacked it , I sat there using the
  25.  box as a footstool, stupified, as I did when I got my brand new 286
  26.  several years before. The next couple of weeks were a haze of buying,
  27.  selling and trading components. The Intel 14.4 modem that I bought, a
  28.  great modem I'm sure, refused to work with ProComm Plus, so I got a
  29.  Zoom. My ancient printer would not work under Windows, until the local
  30.  Radio Shack guy let me know I needed a new cord. In fact, when I
  31.  finally reached Tech Support , they told me the old cord might fry my
  32.  mother board. I got Visual Basic and was off to the races.
  33.  
  34.  The first thing I discovered is that it was fun to click windows on and
  35.  off, push them around poking around a system that seemed bottomless. My
  36.  very own DOS applications looked really dismal by comparison with their
  37.  black screens. DOS became an orphan until I discovered that I didn't
  38.  like File Manager at all. Give me the old DOS directory and file
  39.  commands any day. After playing Solitaire, dumping the Windows
  40.  tutorial, and adding some notes to Notepad, I started in with Visual
  41.  Basic. I should also say that I had obtained an Internet account
  42.  through Channel 1 in Cambridge, MA., expecting to go surfing any day.
  43.  
  44.  DoTheOldLanguageTheNewLanguage
  45.  
  46.  For me, working in Turbo Pascal had been like working for an old
  47.  friend. This DOS based language was dependable giving me control of just
  48.  about anything. If the language didn't do it, I could make a request of
  49.  DOS with a pseudo interrupt. I could put a character wherever I wanted
  50.  it on the screen, and copy or paste portions of the screen with the
  51.  greatest of ease. Instead, I had to do everything myself. Lists had to
  52.  be sorted (Bubble, bubble), menus created (workhorse), a string input
  53.  handler created (this thing I used like sourbread, and changed it for
  54.  each new application).Putting nice and colorful text on the screen was a
  55.  general pain:
  56.  
  57.     1. Type in arcane incantations like gotoxy(x,y) ;
  58.     2. compile the program;
  59.     3. run the program.... oops wrong! Do 1,2,3 until drop dead from
  60.        exhaustion.
  61.  
  62.  If I wanted to fix a file, format a file, do anything with a file,
  63.  Turbo Pascal was great. Some of the things I did: boolean text parser-
  64.  search for and, or, not; numeric expression parser x*2/3+b; directions
  65.  finder for Boston Transit;personal information manager; idea program;
  66.  search for text on system. This last I turned into a chat program where
  67.  you chat with your hard drive. Certainly screwy!
  68.  
  69.  DoVisual Basic
  70.  
  71.  Okay, so I'm a Windows beginner. Have pity on my incorrect information
  72.  and approach. I have already seen a lot of Windows beginners
  73.  programming on the Internet in the comp.lang.basic.visual.misc
  74.  conference. These people, unlike me, the "expert", have never written a
  75.  line of computer code in their life. They have the laudable "telephone"
  76.  or "vcr" approach. I push this button, and it should do that. That is
  77.  all very well if the state of the art of computer programming was up to
  78.  this. Computer programming is not a trip to the ATM machine, although
  79.  it should be.
  80.  
  81.  Visual Basic is event driven. The analogy is that in the old procedural
  82.  language, first you do this, then that, and then maybe the other thing.
  83.  ItÆs like a list of tasks that is sometimes logically complex and
  84.  twisted. But the event driven language uses pretty graphical objects
  85.  like a List Box or a Text Box (for user data entry.) When the user
  86.  clicks on the object, the object's code is triggered by this event.
  87.  That means that all I have to do is fill in the blanks, and I have a
  88.  program.
  89.  
  90.  Hold it. Not so fast.  All the actions of the program have to
  91.  coordinate. You get what I call the oops! effect in Visual Basic very
  92.  fast if two events conflict, or a message doesn't make it from one area
  93.  or "scope" to another. But this type of setup is great for fast
  94.  development, and features like automatic sorting of List Boxes, and
  95.  drawing your screens as you see them, without compiling the program,
  96.  are wonderful tools.
  97.  
  98.  So far I have written a dictionary program for Windows. It doesn't seem
  99.  like it does all that much, but actually it does a lot very well. Now
  100.  if I could just get the thing to make products without me having to sit
  101.  there and click the mouse!
  102.  
  103.  DoComments
  104.  
  105.  The old DOS computer language: -
  106.  The good; Challenging and learn real programming the hard way.
  107.  The bad:  slow, cumbersome, aggravating, keyboard tendonitus
  108.  
  109.  The new Windows computer language: -
  110.  The good: Fast, click the mouse, Windows services, see it now
  111.  The bad: Fast, get into trouble very fast, Create big horrible programs
  112.               fast, mouse complacency, let's not work too hard now.
  113.  
  114.  Yesterday, I managed to blow away a computer reviewer's Internet
  115.  mailbox when I sent him a file attached to a message. Now why didn't
  116.  someone tell me? And then one of my DOS programs doesn't do too well
  117.  when installed with a Windows icon. Why didn't someone tell me? But,
  118.  all in all, Windows is better.
  119.  
  120.  I can highly recommend two books on Visual Basic, which I am dutifully
  121.  studying. Also the Internet conference comp.lang.basic.visual.misc.
  122.  
  123.  Visual Basic 3 by Example, by D.F. Scott
  124.  Prentice Hall/Que, 1994, ISBN: 1-56529-724-5
  125.  
  126.  Visual Basic SuperBible Second Edition, by Bill Potter
  127.  Waite Groupe Press, 1993, ISBN: 1-878739-50-6
  128.  
  129.  Although a new Windows programmer, Peter Neuendorffer is an experienced
  130.  DOS programmer.  .  His best known work finds routes on the Boston
  131.  Transit System. He is a regular WindoWatch contributor.
  132.  
  133.                               ww
  134.